package com.baidu.service.impl;

import com.baidu.mapper.UserMapper;
import com.baidu.model.pojo.User;
import com.baidu.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements IUserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public User login(String email){
        User user = userMapper.findByEmail(email);
        return user;
    }
}
